git switch
命令手册Switch between git branches. Requires git version 2.23+. See also
git checkout
. More information: https://git-scm.com/docs/git-switch/.
git switch {{branch_name}}
git switch --create {{branch_name}}
git switch --create {{branch_name}} {{commit}}
git switch -
git switch --recurse-submodules {{branch_name}}
git switch --merge {{branch_name}}